package com.company.jrlz.entity;

import com.haulmont.cuba.core.entity.StandardEntity;

import javax.persistence.*;

@Table(name = "JRLZ_PRODUCT_RECORDS")
@Entity(name = "jrlz_ProductRecords")
public class ProductRecords extends StandardEntity {
    private static final long serialVersionUID = 7211010193723857908L;

    @Column(name = "PRODUCT_ID")
    private String productId;

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "ASSEMBLE_WORK_ORDER_RECORDS_ID")
    private AssembleWorkOrderRecords assembleWorkOrderRecords;

    @Column(name = "BATCH_NUM")
    private String batchNum;

    @Column(name = "POSITION_")
    private String position;

    @Column(name = "STATUS")
    private String status;

    @JoinColumn(name = "OUTER_CYLINDER_ID")
    @ManyToOne(fetch = FetchType.LAZY)
    private OuterCylinder outerCylinder;

    @JoinColumn(name = "MIDDLE_CYLINDER_ID")
    @ManyToOne(fetch = FetchType.LAZY)
    private MiddleCylinder middleCylinder;

    @JoinColumn(name = "ACTIVITY_PILLAR_ID")
    @ManyToOne(fetch = FetchType.LAZY)
    private ActivityPillar activityPillar;

    @Column(name = "START_TIME")
    private String startTime;

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setActivityPillar(ActivityPillar activityPillar) {
        this.activityPillar = activityPillar;
    }

    public ActivityPillar getActivityPillar() {
        return activityPillar;
    }

    public void setMiddleCylinder(MiddleCylinder middleCylinder) {
        this.middleCylinder = middleCylinder;
    }

    public MiddleCylinder getMiddleCylinder() {
        return middleCylinder;
    }

    public void setOuterCylinder(OuterCylinder outerCylinder) {
        this.outerCylinder = outerCylinder;
    }

    public OuterCylinder getOuterCylinder() {
        return outerCylinder;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public String getBatchNum() {
        return batchNum;
    }

    public void setBatchNum(String batchNum) {
        this.batchNum = batchNum;
    }

    public AssembleWorkOrderRecords getAssembleWorkOrderRecords() {
        return assembleWorkOrderRecords;
    }

    public void setAssembleWorkOrderRecords(AssembleWorkOrderRecords assembleWorkOrderRecords) {
        this.assembleWorkOrderRecords = assembleWorkOrderRecords;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }
}